import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 路由初始化
import './permission' // 路由拦截
import store, { storeKey } from './store/index' // vuex 初始化
import vantComponents from '@/plugin/vant' // ui 初始化

const app = createApp(App).use(router).use(store, storeKey)

vantComponents.forEach(component => app.component(component.name, component))

app.mount('#app')
